package com.sjz.ctkj.canvasstudy.activitys;

import android.content.pm.ActivityInfo;
import android.content.res.Configuration;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.annotation.RequiresApi;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.FrameLayout;

import com.sjz.ctkj.canvasstudy.R;
import com.sjz.ctkj.canvasstudy.weghit.MarqueeTextviewNofocus;

@RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN_MR1)
public class VedioPlayActivity extends AppCompatActivity{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_vedioplay);

        MarqueeTextviewNofocus marqueeTextviewNofocus = findViewById(R.id.tv_marquee);
        marqueeTextviewNofocus.setText("大家好啊，我是跑马灯~");
        // 初始化
        marqueeTextviewNofocus.init(getWindowManager());
        // 设置滚动方向
        marqueeTextviewNofocus.setScrollDirection(MarqueeTextviewNofocus.RIGHT_TO_LEFT);
        // 设置滚动速度
        marqueeTextviewNofocus.setScrollMode(MarqueeTextviewNofocus.SCROLL_FAST);
    }

    @Override
    public void onPause() {
        super.onPause();
    }

    @Override
    public void onResume() {
        super.onResume();
    }

    @Override
    public void onBackPressed() {
        super.onBackPressed();
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
    }
}
